/*环境参数*/
const env = process.env.NODE_ENV;

/*配置*/
let MYSQL_CONF;

if (env === 'dev') {
    /*mysql配置*/
    MYSQL_CONF = {
        host: 'localhost',
        user: 'root',
        password: 'root',
        port: '3306',
        database: 'music'
    };
}

if (env === 'production') {
    MYSQL_CONF = {
        host: 'localhost',
        user: 'root',
        password: 'root',
        port: '3306',
        database: 'music'
    };
}

module.exports = {MYSQL_CONF};
